package com.qsq.newsmanager.service;

import com.qsq.newsmanager.dto.InsertExcution;
import com.qsq.newsmanager.entity.News;

import java.util.List;

/**
 *
 * Created by lining on 2017/3/28.
 */
public interface NewsService {

    InsertExcution insertNews(News news);

    /*根据ID查询对用新闻*/
    News queryById(long newsId);

    /*查询所有新闻*/
    List<News> queryAll();

}
